package com.company.cloud.product.modules.api.request;

import java.math.BigDecimal;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.bean.LoginSimpleUserInfo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProductStockSingleSkuOpParam extends BaseParam{

	@ApiModelProperty(value = "库存操作类型【ProductStockBusiTypeEnum】" ,required = true)
	@NotEmpty(message = "#库存操作类型不能为空")
	private String busiType;
	
    @ApiModelProperty(value = "SKU商品号" ,required = true)
    @NotEmpty(message = "#SKU商品号不能为空")
    private String skuNo;
  
    @ApiModelProperty(value = "库存数量",required = true)
    @NotNull(message = "#库存数量不能为空")
    @Min(message = "#最小库存数量1",value = 1)
    @Max(message = "#最大库存数量9999999",value = 9999999)
    private BigDecimal num;
    
	@ApiModelProperty(value = "公司编号" ,required = true)
	@NotEmpty(message = "#公司编号不能为空")
	private String companyNo;

	@ApiModelProperty(value = "客户编号")
	private String custNo;
	
	@ApiModelProperty(value = "操作人用户信息",required = true)
	@NotNull(message = "操作人信息不能为空")
	private LoginSimpleUserInfo opUserInfo;
	
}
